from __future__ import unicode_literals

from GuoWu import settings
from django.db import models

#
# class FlashImage(models.Model):
#     image = models.CharField(max_length=255, blank=True)


class Image(models.Model):
    image = models.CharField(max_length=255, blank=True)

class HotNews(models.Model):
    title = models.CharField(max_length=255)
    news = models.TextField(blank=True)


class CorpInfo(models.Model):
    title = models.CharField(max_length=255)
    logo = models.CharField(max_length=255, null=True)
    profile = models.TextField()
    flash_images = models.ManyToManyField(Image)


class Case(models.Model):
    title = models.CharField(max_length=255)
    screenshot = models.ForeignKey(Image, null=True)
    description = models.TextField(blank=True)

class Service(models.Model):
    title = models.CharField(max_length=255)
    description = models.TextField(blank=True)
    screenshot = models.ForeignKey(Image, null=True)

class Client(models.Model):
    title = models.CharField(max_length=255, null=True)
# Create your models here.
